<?php
namespace test/01

protected $url;

public function __construct($url)
{
	$this->url = $url;
}

public function getId()
{
	return $this->url;
}

public function getContent()
{
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $this->url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
	curl_setopt($ch, CURLOPT_MAXREDIRS, 3);
	$html = curl_exec($ch);
	curl_close($ch);
	return $html;
}


?>